<template>
	 <view>
		  <view>
			    <button type="button" @click="showWarnModal">打开弹出框{{visible}}</button>
			    <modalwarn :visible.sync="visible"></modalwarn>
			  </view>

		 
	</view>
</template>

<script>
	import modalwarn from '@/components/modalwarn.vue';

	export default {
		components: {
			modalwarn
		},
		data() {
			return {
				visible: false,
				show: false
			}
		},
		methods: {
			showWarnModal() {
				this.visible = true;
			}
		}
	}
</script>